remote-add: Add --force option to add or replace remote
authorDan Nicholson <nicholson@endlessm.com>
Tue, 12 Sep 2017 22:05:08 +0000 (17:05 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 8 Feb 2019 14:36:41 +0000 (14:36 +0000)
commitb33a4e9b1e5df8c4126dedb9f24f66ee0b1d7ad5
treeb6bc48cd601207ff9d7e9f97e759c183a9868d27
parent8431bb54066ae8ab677ba95ed7c016eb9bc03230
remote-add: Add --force option to add or replace remote

This uses the OSTREE_REPO_REMOTE_CHANGE_REPLACE operation to add a
remote or replace an existing one. This is roughly the opposite of
--if-not-exists and will raise an error if both options are passed.

Closes: #1166
Approved by: cgwalters
bash/ostree
man/ostree-remote.xml
src/ostree/ot-remote-builtin-add.c
tests/test-remote-add.sh